<%@ page contentType="text/html; charset=UTF-8"%>
<%@page import="com.hitrust.gs.bean.GSProviderBean"%>
<%@page import="com.hitrust.gs.business.GSProviderProcessor"%>
<%@page import="com.hitrust.gs.bean.GSManufactureBean"%>
<%@page import="java.util.ArrayList"%>
<%@page import="com.hitrust.gs.business.GSManufactureProcessor;"%>
<%
GSManufactureProcessor mpro=new GSManufactureProcessor();
GSProviderProcessor ppro=new GSProviderProcessor();
String ck=request.getParameter("ck");
String sid=request.getParameter("conid");
sid=java.net.URLDecoder.decode(sid,"utf-8");
String row="";
if("1".equals(ck)){
    ArrayList al=mpro.getManufacutreByConcentricityId(sid);
    if(al!=null&&al.size()>0){
        row=al.size()+"-";
        for(int i=0;i<al.size();i++){
            GSManufactureBean gb=(GSManufactureBean)al.get(i);
            String pid=gb.getGs_provider_id();
            row+=pid+"%";
        }
    }
}
if("2".equals(ck)){
    GSProviderBean pbean=ppro.getProviderByName(sid);
    if(pbean!=null){
        row=pbean.getGs_provider_id()+"%"+pbean.getGs_provider_name();
    }
}
response.setHeader("Charset","utf-8");
out.print(row);
%>